import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
/**
 * @description: Request list interface parameters
 */
export type DemoParams = BasicPageParams;

export interface ModelListItem {
  id?: string;
  client?: number;
  modelName: string;
  modelCode: string;
  modelType: string;
  editDate: string;
  dataInfo: Indexable;
  modules?: string[];
  formDesignInfo?: Indexable;
  tableDesignInfo?: Indexable;
  compositeDesignInfo?: Indexable;
  meta?: string;
  listTemplateType?: number;
}

export interface DBTableItem {
  tableCode: string;
  dataSource: string;
  size?: number;
  current?: number;
}

/**
 * @description: Request list return value
 */
export type ModelListGetResultModel = BasicFetchResult<ModelListItem>;

export interface OptionParams {
  moduleId: number;
  field: string;
  content?: string;
}

export interface OptionItem {
  value: string;
  label: string;
}

export interface UploadApiResult {
  message: string;
  code: number;
  url: string;
}
